package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 问卷调查对象 survey
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("survey")
public class Survey implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 所在物业公司id
     */
    private Long propertyId;

    /**
     * 调查主题
     */
    private String questionTitle;

    /**
     * 问卷阐述内容
     */
    private String surveyInfo;

    /**
     * 问题状态
     */
    private Integer state;

    private Integer isDefault;

    private Integer useType;


    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private String propertyName;

}
